#include<iostream>
#include<memory>
#include"TcpServer.hpp"
#include"Log.hpp"
#include"Command.hpp"
static int port=8080;
using namespace LogMoudule;
int main()
{
    ENABLE_CONSOLE_LOG();
    // 执行指令
    // Command excute;
    // //服务器
    // std::unique_ptr<TcpServer> tsvr=std::make_unique<TcpServer>([&excute](std::string command){ return excute.execute(command);},port);
    std::unique_ptr<TcpServer> tsvr=std::make_unique<TcpServer>(port);
    tsvr->InitServer();
    tsvr->Start();
    return 0;
}